
import { createStore } from "vuex"

import mutation from "./mutations";
import action from "./actions";
const state={
    cartList:[]
}
const store =createStore({
	state:state,
	mutations:mutation,
	actions:action,
	getters:{
	    cartLength(state){
	        return state.cartList.length
	    }
	}
})
export default store
